/**
 * This class embodies a collection of projects and the status of the request for those projects.
 */
package org.hackystat.ui.telemetryviewer.client.common;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * This class embodies a collection of projects and the status of the request for those projects.
 * @author David J. Nickles
 *
 */
public class ProjectConveyor implements IsSerializable {
  
  /** 
   *  This field is a List that must always contain ProjectParcels.
   *  @gwt.typeArgs <org.hackystat.ui.telemetryviewer.client.common.ProjectParcel> 
   */
  private ArrayList projects;
  private String status;

  /**
   * Get the status string associated with this dataset.
   * @return TRUE if getData was successful or error string if it was not.
   */
  public String getStatus() {
    return status;
  }

  /**
   * Set the status string associated with this dataset.
   * @param status TRUE if getData was successful or error string if it was not.
   */
  public void setStatus(String status) {
    this.status = status;
  }

  /**
   * @return the ProjectParcels of this chart.
   * 
   * @gwt.typeArgs <org.hackystat.ui.telemetryviewer.client.common.ProjectParcel>
   */
  public ArrayList getProjects() {
    return projects;
  }

  /**
   * @param projects the ProjectParcels to set.
   * 
   *  @gwt.typeArgs projects <org.hackystat.ui.telemetryviewer.client.common.ProjectParcel> 
   */
  public void setProjects(ArrayList projects) {
    this.projects = projects;
  }

}
